import ossAdminApiConfig from '@/core/oss/generated/apiconfig/ossAdminApiConfig'
import serverApiMockUtils from '../../utils/serverApiMockUtils'
import mockProdServerUtils from '../../utils/mockUtils'
import { MockMethod } from 'vite-plugin-mock'
import Mock from 'mockjs'
import OssApplicationSupplierResponse from '@/core/oss/generated/types/model/response/OssApplicationSupplierResponse'

const content: OssApplicationSupplierResponse[] = []
for (let i = 0; i < 10; i++) {
	content.push({
		id: i.toString(),
		ossAppId: i.toString(),
		ossSupplierId: i.toString(),
		deleteFlag: '0',
		createTime: new Date().getTime().toString(),
		updateTime: new Date().getTime().toString(),
		rowVersion: 1,
	} as OssApplicationSupplierResponse)
}

const mockList: MockMethod[] = [...serverApiMockUtils.getDefaultServerApi(ossAdminApiConfig.ossApplicationSupplier, content)]

mockProdServerUtils.addMockList(...mockList)

export const items = content
